package com.lill.stock.dao;

import com.lill.common.component.dao.IBaseDao;
import com.lill.stock.model.StockRealModel;

import java.util.List;
import java.util.Map;

/**
 * 实时库存Dao
 *
 * @author lill
 * @date 2021-09-25 11:41:47
 */
public interface IStockRealDao extends IBaseDao<StockRealModel> {

    /**
     * 批量
     * @param list
     * @return
     */
    int saveBatch(List<StockRealModel> list);
    
    int updateStore(Map<String, Object> realMap);
    
    int updateRealStock(Map<String, Object> realMap);

	int updateSaleRealStock(String id);
	
	int updateCancelOrder(String id);

	int saveBatchReal(List<Map<String, Object>> list);
	
	Map<String, Object> queryStatStock(Map<String, Object> map);

}
